package cn.walls1717.wallsmall.order.dao;

import cn.walls1717.wallsmall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-21 13:23:17
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 根据orderSn修改订单状态
     *
     * @param orderSn orderSn
     * @param code 订单状态
     */
    void updateStatusByOrderSn(@Param("orderSn") String orderSn, @Param("code") Integer code);
}
